package com.marco.system.dao;

import com.marco.system.domain.FourLevelAdInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * FourLevelAdInfoDao.java
 * Create on 2017/4/18
 * Copyright(c) JD Inc 2017. All Rights Reserved.
 * <pre>
 * 功能说明：
 * </pre>
 */
@Repository
public interface FourLevelAdInfoDao extends Mapper<FourLevelAdInfo> {

    List<FourLevelAdInfo> findByParentCode(String parentCode);

    void updateLngAndLat(FourLevelAdInfo info);

    void updateJdName(FourLevelAdInfo info);

    List<FourLevelAdInfo> getInfoByLngAndLat(@Param("lng") String lng, @Param("lat") String lat);

    List<FourLevelAdInfo> getInfoByName(@Param("province") String province, @Param("city") String city, @Param("district")
            String district);

    List<FourLevelAdInfo> getInfoByNameAndParentCode(@Param("shortName") String shortName, @Param("parentCode") String
            parentCode);
}
